
/*
//开关按钮摁键切换
var Switchbox = document.querySelector(".ek .clearfix").children[2]
var flag = false
Switchbox.onclick = function () {
    var Switch = Switchbox.firstElementChild

    if (flag) {
        Switch.className = "off"
        flag = false
    }
    else {
        Switch.className = "open"
        flag = true
    }
    // Switch.className = "open"

}*/


//查看更多
var morebtn = document.querySelector(".exlt").lastElementChild.previousElementSibling
// console.log(morebtn);
var more = document.querySelector(".more")
// console.log(more);

// var moreFlag = false
morebtn.onclick = function () {
    if (more.style.display=="none") {
        more.style.display = "block"
    }
    else {
        more.style.display = "none"
    }
}

//1获得简历父容器
var resumeFa = document.querySelector(".rbox")
resumeFa.onclick = function (event) {
    var ele = event.target
    if (ele.className == "ul"){
        if (ele.style.display == "none") {
            ele.style.display = "block"
        }
        else {
            ele.style.display == "none"
        }
    }

}


$(".addResumeBtn").click(function () {//点击查询简历个数，是否大于3
    $.ajax({
        type:"get",
        url:"/resume/count",
        datetype:"json",
        success:function (result) {
            if (result.status == 0){
                $(".errorMSg").text(result.data)
            }else{
                location.href ="/resumeadd"
            }
        }
    })
})